package net.gq.logistics.pojo;

import java.io.Serializable;

public class Permission implements Serializable {

    private static final long serialVersionUID = -723941744346670297L;
    private Long permissionId;

    private String name;

    private String type;

    private String url;

    private String expression;

    private Long parentId;

    private Integer sort;

    //子链接联合查询新增父权限
    private String parentName;


    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Long permissionId) {
        this.permissionId = permissionId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "Permission{" + "permissionId=" + permissionId + ", name='" + name + '\'' + ", type='" + type + '\'' + ", url='" + url + '\'' + ", expression='" + expression + '\'' + ", parentId=" + parentId + ", sort=" + sort + ", parentName='" + parentName + '\'' + '}';
    }
}